import Window
from ui import HTML,Button,VerticalPanel,Label,ScrollPanel,Hyperlink
from service import DataService
from Sink import Sink, SinkInfo


class TIAbout(Sink):
    def __init__(self):
        
        self.html1 = HTML("""<h1>GodTime!</h1>
        One hour for each week ,do this site<br />""")
         
        self.vp = VerticalPanel()
        self.vp.add(self.html1)

        self.vp.setStyleName("gt-json")

        self.sp = ScrollPanel()
        self.sp.add(self.vp)

        self.setWidget(self.sp)

    def onShow(self):
        self.sp.setSize(self.cx,self.cy)
        return


def init():
    return SinkInfo('About.....', "<b>About</b>", TIAbout)